import { ref, watch } from 'vue'
export default class testVue3Change {
  constructor() {
    this.a = ref(0)
    this.list = ref([])

    watch(this.a, () => {
      console.log(`修改了a`, this.a)
    })
  }
  add() {
    this.a.value++
    this.list.value.push(new Date())
  }
}
